package com.choosefine.it.basedata.service;

import com.choosefine.it.basedata.dao.CountMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * Comments：
 * Author：yuxin
 * Create Date：2017-03-10
 * Modified By：
 * Modified Date：
 * Why & What is modified：
 * Version：v1.0
 */
@Service(value = "countService")
public class CountService {

    @Autowired
    CountMapper countMapper;
    public int isInsert(Map<String,Object> map){
        int isInsert= countMapper.isInsert(map);
        return isInsert;
    };//查询是否收藏
    public int favoriteCount(Map<String,Object> map){
        int favoriteCount=countMapper.favoriteCount(map);
        return favoriteCount;
    };// 发布信息的收藏数量
}
